package com.company.Lock;

public class A {
    int age = 0;

    static void change(A a) {
        A b = new A();
        a.age = 20;
        a = b;
    }

    static void change2(String a) {
        System.out.println(a);
    }
    static void change3(A a) {
        System.out.println(a);
    }


    public static void main(String[] args) {
        A a = new A();
        a.age = 1;
        change(a);
        System.out.println(a.age);
    }
}
